<!-- if $project_list -->
<script type="text/javascript">
function pendding_info()
{
	$.phpok.json(get_url('index','pendding_sublist'),function(rs){
		$("em.toptip").remove();
		if(rs.status && rs.info){
			var list = rs.info;
			var html = '<em class="toptip">{total}</em>';
			var total = 0;
			for(var key in list){
				$("li[id=project_"+list[key]['id']+"] em").remove();
				$("li[id=project_"+list[key]['id']+"]").append(html.replace('{total}',list[key]['total']));
			}
		}
	});
}

$(document).ready(function(){
	$("#project li").mouseover(function(){
		$(this).addClass("hover");
	}).mouseout(function(){
		$(this).removeClass("hover");
	}).click(function(){
		var url = $(this).attr("href");
		var txt = $(this).text();
		if(txt == '' || $.trim(txt) == ''){
			txt = $(this).attr('title');
		}
		if(url){
			$.win(txt,url);
			return true;
		}
		$.dialog.alert(p_lang('未指定动作'));
		return false;
	});
	setTimeout(function(){
		pendding_info();
	}, 1000);
});
</script>
<ul class="project" id="project">
	<!-- loop from=$project_list key=$key value=$value -->
	<li id="project_{$value.id}" title="{$value.title}" status="{$value.status}" href="{url ctrl=list func=action id=$value.id/}">
		<div class="img"><img src="{$value.ico ? $value.ico : 'images/ico/default.png'}" /></div>
		<div class="txt" id="txt_{$value.id}">{$value.nick_title ? $value.nick_title : $value.title}</div>
	</li>
	<!-- /loop -->
</ul>
<div class="clear"></div>
<!-- /if -->